/**
 * Created by John on 2016/7/7.
 */
var cursor = wordsColl.find({
    first: {
        $in: ['a', 'b', 'c']
    }
});

var itemCount = cursor.count();

var order = myCollection.find().sort({name: 1}).sort({value: -1});

cursor = wordsColl.find();
cursor = cursor.limit(10);
cursor.forEach(function (word) {
    printjson(word)
});

cursor = myCollection.find({first: 't'}, {stats: 0, value: 0, comments: 0});

cursor = myCollection.find({fisrst: 't'}, {word: 1, size: 1});

cursor = myCollection.find().sort({name: 1});
cursor.skip(0);
cursor.limit(10);
cursor = myCollection.find().sort({name: 1});
cursor.skip(10);
cursor.limit(10);
cursor.myCollection.find().sort({name: 1});
cursor.skip(20);
cursor.limit(10);

var lastNames = myUsers.distinct('last', {age: {$gt: 65}});

